package com.linln.modules.system.domain;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "RareDiseaseICD10", schema = "dbo", catalog = "WQR")
public class RareDiseaseIcd10Entity {
    private String icd;
    private String pym;
    private String jbfl;

    @Id
    @Column(name = "ICD", nullable = false, length = 60)
    public String getIcd() {
        return icd;
    }

    public void setIcd(String icd) {
        this.icd = icd;
    }

    @Basic
    @Column(name = "PYM", nullable = true, length = 15)
    public String getPym() {
        return pym;
    }

    public void setPym(String pym) {
        this.pym = pym;
    }

    @Basic
    @Column(name = "JBFL", nullable = true, length = 150)
    public String getJbfl() {
        return jbfl;
    }

    public void setJbfl(String jbfl) {
        this.jbfl = jbfl;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RareDiseaseIcd10Entity that = (RareDiseaseIcd10Entity) o;
        return Objects.equals(icd, that.icd) && Objects.equals(pym, that.pym) && Objects.equals(jbfl, that.jbfl);
    }

    @Override
    public int hashCode() {
        return Objects.hash(icd, pym, jbfl);
    }
}
